package com.example.xpvideo.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 商品评论表(CommodityComments)实体类
 *
 * @author 杨丽辉
 * @since 2021-07-15 15:07:18
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CommodityComments implements Serializable {
    private static final long serialVersionUID = 117067160263764939L;
        /**
    *主键
    * ${column.comment}
    * isnull 1
    */
        private Integer id;

    /**
    * 用户id
    * isnull 0
    */            private Integer customerId;
    /**
    * 商品id,指的是Belongid
    * isnull 0
    */            private Integer goodsId;
    /**
    * 订单id
    * isnull 0
    */            private Integer orderId;
    /**
    * 评论内容，需经过base64加密
    * isnull 0
    */            private String content;
    /**
    * 评论是否有效，1有效，2删除
    * isnull 0
    */            private Integer status;
    /**
    * 评论时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
            private LocalDateTime addTime;
    /**
    * 上传图片集
    * isnull 0
    */            private String detailPics;
    /**
    * 商品评价星级，可打星级，1星到5星
    * isnull 0
    */            private Integer evaluate;
        
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
        
    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }
        
    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }
        
    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }
        
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
        
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
        
    public LocalDateTime getAddTime() {
        return addTime;
    }

    public void setAddTime(LocalDateTime addTime) {
        this.addTime = addTime;
    }
        
    public String getDetailPics() {
        return detailPics;
    }

    public void setDetailPics(String detailPics) {
        this.detailPics = detailPics;
    }
        
    public Integer getEvaluate() {
        return evaluate;
    }

    public void setEvaluate(Integer evaluate) {
        this.evaluate = evaluate;
    }

        @Override
    public String toString() {
        return "{" +
                    " \"id\":" + id +
                                  " ,\"customerId\":" + customerId +
                            " ,\"goodsId\":" + goodsId +
                            " ,\"orderId\":" + orderId +
                            " ,\"content\":" + content +
                            " ,\"status\":" + status +
                            " ,\"addTime\":" + addTime +
                            " ,\"detailPics\":" + detailPics +
                            " ,\"evaluate\":" + evaluate +
                  '}';
    }


}
